package com.stars.home.vmodel

import android.app.Activity
import android.app.Application
import android.text.Editable
import android.text.TextUtils
import android.util.Log
import androidx.databinding.Bindable
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.stars.home.BR
import com.stars.home.activity.ApplyActivity
import com.stars.home.activity.SurplusActivity
import com.stars.home.model.MemberList
import com.stars.home.utils.net.NetEngine
import com.stars.home.view.SimpleTextWatcher
import com.trailer.base.base.BRepository
import com.trailer.base.base.BViewModel
import com.trailer.base.utils.UiSwitch
import kotlinx.coroutines.launch

class BillDetailsVModel(application: Application) : BViewModel<BRepository>(application) {


    var bean=MutableLiveData<MemberList>()


    fun getTips(payType:String?):String{
        when(payType){
            "1"->{
                return "微信"
            }
            "2"->{
                return "余额"
            }
            "3"->{
                return "支付宝"
            }
        }

        return ""
    }

    fun getBillType(type:String?):String{
        when(type){
            "1"->{
                return "充值"
            }
            "2"->{
                return "消费"
            }
            "3"->{
                return "提现"
            }
            "4"->{
                return "收入"
            }
        }

        return ""
    }

}
